import React from 'react';
import { Router, Route, Switch } from 'dva/router';
import AccountManagement from './routes/AccountManagement';
import EmployeeManagement from './routes/EmployeeManagement';
import JobManagement from './routes/JobManagement';
import Terms from './routes/Terms';
import WorkManagement from './routes/WorkManagement';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/accountManagement" exact component={AccountManagement} />
        <Route path="/employeeManagement" exact component={EmployeeManagement} />
        <Route path="/jobManagement" exact component={JobManagement} />
        <Route path="/terms" exact component={Terms} />
        <Route path="/workManagement" exact component={WorkManagement} />
      </Switch>
    </Router>
  );
}

export default RouterConfig;
